% ctex-fontset-adobe.def: Adobe 的字体设置，为 Adobe 的四套字体
% vim:ft=tex

\providebool{CTEX@temp}
\booltrue{CTEX@temp}

\ifCTEX@engines{xeCJK}{LuaCJK}{
  \setCJKmainfont[BoldFont=AdobeHeitiStd-Regular,ItalicFont=AdobeKaitiStd-Regular]{AdobeSongStd-Light}
  \setCJKsansfont{AdobeHeitiStd-Regular}
  \setCJKmonofont{AdobeFangsongStd-Regular}
  \setCJKfamilyfont{zhsong}{AdobeSongStd-Light}
  \setCJKfamilyfont{zhhei} {AdobeHeitiStd-Regular}
  \setCJKfamilyfont{zhfs}  {AdobeFangsongStd-Regular}
  \setCJKfamilyfont{zhkai} {AdobeKaitiStd-Regular}
}{
  \ifpdf
    \boolfalse{CTEX@temp}
  \else
    \ifCTEX@engine{zhmCJK}{
      \setCJKmainfont[BoldFont=AdobeHeitiStd-Regular.otf,ItalicFont=AdobeKaitiStd-Regular.otf]{AdobeSongStd-Light.otf}
      \setCJKsansfont{AdobeHeitiStd-Regular.otf}
      \setCJKmonofont{AdobeFangsongStd-Regular.otf}
      \setCJKfamilyfont{zhsong}{AdobeSongStd-Light.otf}
      \setCJKfamilyfont{zhhei} {AdobeHeitiStd-Regular.otf}
      \setCJKfamilyfont{zhkai} {AdobeKaitiStd-Regular.otf}
      \setCJKfamilyfont{zhfs}  {AdobeFangsongStd-Regular.otf}
    }{
      \ifbool{CTEX@zhmap}
        {\CTEX@inputzhmap{zhadobefonts}}
        {\boolfalse{CTEX@temp}}
    }
  \fi
}

\ifbool{CTEX@temp}{
  \newcommand*\songti  {\CJKfamily{zhsong}}  % 宋体
  \newcommand*\heiti   {\CJKfamily{zhhei}}   % 黑体
  \newcommand*\kaishu  {\CJKfamily{zhkai}}   % 楷书
  \newcommand*\fangsong{\CJKfamily{zhfs}}    % 仿宋
}{}

\endinput
